"use strict";

const { Controller } = require("ee-core");
const Log = require("ee-core/log");
const Services = require("ee-core/services");
const constants = require("../shared/constants");
const configKeys = require("../shared/configKeys");
/**
 * example
 * @class
 */
class SettingController extends Controller {
  constructor(ctx) {
    Log.info("SettingController constructor");
    super(ctx);
  }

  /**
   * 所有方法接收两个参数
   * @param args 前端传的参数
   * @param event - ipc通信时才有值。详情见：控制器文档
   */

  /**
   * test
   */
  async getConfigMap() {
    // Log.info("SettingController", constants);
    return constants;
  }

  getConfigKeys(){
    return configKeys;
  }
}

SettingController.toString = () => "[class SettingController]";
module.exports = SettingController;
